<html>
<head>
	<meta content="text/html; charset=utf-8" http-equiv="content-type"/>
</head>

<body>
<!-- Login Form Begin -->
<br /><br /><br />

<div align="center">
	
	<div id="login" align="center" style="background-color: #666666; color:#FFFFFF; font-weight: bold; padding: 20px; height: 240px; width: 320px; border: 2px ridge #000000;">
		<p style="text-align: center; font-size:20px;">
			<em>{$siteTitle}</em>
			{if $adminRequest}<br />(Контролен Панел){/if}
			{if $devel}<br />В Разработка{/if}
		</p>
		<p style="text-align: center; font-size:20px; text-decoration: underline;"><em>Вход</em></p>
		
		<form name="formLogin" action="{$smarty.server.PHP_SELF}?{$smarty.server.QUERY_STRING}" method="post">
			<table align="center" border="0" cellspacing="3" cellpadding="0">
				<tr>
					<td align="right">
						<label style="color:#FFFFFF; font-weight: bold;">
							Потребител:
						</label>
					</td>
					<td valign="top">
						<input type="text" name="user" size="15" maxlength="30"  value="{$formValueUser}">
					</td>
					<td style="font-size:12px; color: red;">{$formErrorUser}</td>
				</tr>
				<tr>
					<td align="right">
						<label style="color:#FFFFFF; font-weight: bold;">
							Парола:
						</label>
					</td>
					<td valign="top">
						<input type="password" name="pass" size="15" maxlength="30" value="">
					</td>
					<td  style="font-size:12px; color: red;">{$formErrorPass}</td>
				</tr>
				<tr>
					<td colspan="4" align="center">
						<input type="hidden" name="remember" >
						<input type="hidden" name="sublogin" value="1">
					</td>
				</tr>
			{if !$adminRequest}
				<tr>
					<td colspan="2" style="font-size:11px; color: white; font-weight:bold;">
						{literal}Ако нямате акаунт, моля  <a style="color: white; hover{color: white; text-decoration: none;} visited{color: white;}" href="register.php">регистрирайте се</a> .{/literal}
					</td>
				</tr>
			{/if}	
			
				<tr>
					<td colspan="2" style="font-size:11px; color: white; font-weight:bold;">
						&nbsp;
					</td>
				</tr>
				<tr>
					<td colspan='3' align='right'>
						<input type="submit" name="Button" value="Вход" id="Button" class="niceButton" />&nbsp;
					</td>
					<td></td>
				</tr>
			</table>
		</form>
		<br /> 
		
		{*
		{if isset($formError)} {
			<div align="center" style="color:#FF0000; font-size:14px; font-weight: bold;">{$formError}</div>
		{/if}
		*}

		<br />
		
	</div>
</div>

<script type="text/javascript">
	document.formLogin.{$focusField}.focus();
</script>
<!-- Login Form End -->

</body>
</html>